package com.mbl.base.modular.base.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.mbl.base.core.common.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 操作日志表
 * </p>
 *
 * @author lwj
 * @since 2020-03-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("mbl_base_log")
@ApiModel(value="Log对象", description="操作日志表")
public class Log extends BaseEntity<Log> {

    @ApiModelProperty(value = "管理员")
    private String admin;

    @ApiModelProperty(value = "管理员地址")
    private String ip;

    /**
     * 日志分类 1.访问日志 2.登录日志 3.操作日志
     */
    @ApiModelProperty(value = "操作分类")
    private Integer type;

    @ApiModelProperty(value = "操作动作")
    private String action;

    @ApiModelProperty(value = "操作状态")
    private Boolean status;

    @ApiModelProperty(value = "操作结果，或者成功消息，或者失败消息")
    private String result;

    @ApiModelProperty(value = "请求数据")
    private String comment;

    @ApiModelProperty(value = "请求地址 ")
    private String MUrl;
}
